<template>
	<div>
		<BreadList :list="['Home','Content',{'name':'Blog'},'Edit']"></BreadList>
		<a-card>
			{{editState === 0 ? '添加' : '修改'}}
		</a-card>
	</div>
</template>

<script>
	export default {
		name: 'BlogEdit',
		data () {
			return {
				editState: ''
			}
		},
		created() {
			const blogId = this.$route.query.blogId
			if (blogId === undefined) {
				// 添加
				this.editState = 0
			} else {
				// 修改
				this.editState = 1
			}
		}
	}
</script>

<style>
</style>
